package dao;
 
 import org.apache.ibatis.annotations.Param;
 import pojo.User;
 
 import java.util.List;
 
 public interface UserDao {


     int addUser(User user);

     User findUserById(int id);

     int updateUser(User user);

     int deleteUserById(Integer id);


     List<User> findAll(@Param("user") User user, @Param("offset") int offset,@Param("pageSize") int pageSize);

     int count(User user);

     int login(User user);

     int findUserByName(String name);
 }
